package com.test.kotlin06

object ApplicationConfig{//即是类名也是单例  对象声明
    init{
        println("ApplicationConfig loading ~")
    }

    fun doSomething(){
        println("doSomething  ~")
    }


}

fun main() {
    ApplicationConfig.doSomething()
    println(ApplicationConfig)
    println(ApplicationConfig)
}